package com.hspedu.hspspringmvc.handler;

import java.lang.reflect.Method;

/**
 * packageName com.hspedu.hspspringmvc.handler
 *
 * @author 你的名字
 * @version JDK 8
 * @className HspHandler (此处以class为例)
 * @date 2025/2/17
 * @description TODO
 */
public class HspHandler {
    private String url;
    private Object Controller;
    private Method methodName;

    public HspHandler(String url, Object controller, Method methodName) {
        this.url = url;
        Controller = controller;
        this.methodName = methodName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Object getController() {
        return Controller;
    }

    public void setController(Object controller) {
        Controller = controller;
    }

    public Method getMethodName() {
        return methodName;
    }

    public void setMethodName(Method methodName) {
        this.methodName = methodName;
    }

    @Override
    public String toString() {
        return "HspHandler{" +
                "url='" + url + '\'' +
                ", Controller=" + Controller +
                ", methodName='" + methodName + '\'' +
                '}';
    }
}
